﻿using System;
using Icms.Core.Model;
using Icms.Core.Repository;
using Icms.Core.Service;

namespace Icms.Service
{
    public class CourtsService<T> : CrudService<T>, ICourtsService<T> where T : DelEntity, IHasCourt, new()
    {
        public CourtsService(IRepo<T> repo) : base(repo)
        {
        }

        public Guid Create(T o, Court court)
        {
            if (court != null) o.Court = court;
            return Create(o);
        }
    }
}